import request from '@/utils/request'
// 留言回复查询
export function getnested(data){
  return request({
    url:'/zxqyfw/web/replyMessage/getOneReply',
    method:'get',
    params:data
  })
}
// 企业留言
export function getBoxMessage(data){
  return request({
    url:'/zxqyfw/web/publishMessage/getBoxMessage',
    method:'get',
    params:data
  })
}
// 管理员发布
// :disabled="showExampleBtn.disabled"

export function upMessage(data){
  return request({
    url:'/zxqyfw/web/publishMessage/upMessage',
    method:'post',
    data
  })
}
//留言查询
export function selectLike(data){
  return request({
    url:'/zxqyfw/web/publishMessage/selectLike',
    method:'get',
    params:data
  })
}
// 删除留言
export function likedeleteById(data){
  return request({
    url:'/zxqyfw/web/publishMessage/deleteById',
    method:'post',
    params:data
  })
}
// 回复留言
export function addReply(data){
  return request({
    url:'/zxqyfw/web/replyMessage/addReply',
    method:'post',
    data
  })
}
// 获取所有融资列表
export function getListAdmin(data){
  return request({
    url:'/zxqyfw/web/financialDetails/getListAdmin',
    method:'get',
    params:data
  })
}
// 发布融资需求
export function passOne(data){
  return request({
    url:'/zxqyfw/web/financialDetails/passOne',
    method:'post',
    data
  })
}
// 批量发布融资需求
export function passMany(data){
  return request({
    url:'/zxqyfw/web/financialDetails/passMany',
    method:'post',
    data
  })
}
// 模糊查询企业
export function rzselectLike(data){
  return request({
    url:'/zxqyfw/web/financialDetails/selectLike',
    method:'get',
    params:data
  })
}
// /zxqyfw/web/financialDetails/deleteOne
// 删除融资
export function deleteOne(data){
  return request({
    url:'/zxqyfw/web/financialDetails/deleteOne',
    method:'get',
    params:data
  })
}
//文件下载
export function download(data){
  return request({
    url:'/zxqyfw/pub/fileUploadRecord/download',
    method:'get',
    params:data,
    responseType:'blob'
  })
}
// 批量下载
export function downloadMany(data){
  return request({
    url:'/zxqyfw/web/financialDetails/downloadMany',
    method:'post',
    data:data,
    responseType:'blob'
   })
}
// 发布状态
export function publicstatus(data){
  return request({
    url:'/zxqyfw/web/financialDetails/updateFinancialDetailsStatus',
    method:'post',
    params:data
   })
}